package com.mindcraft.shop.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.Transient;

import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("market_vote")
public class MarketVote {
    @TableField("id")
    private Integer id;
    @TableField("title")
    private String title;
    @TableField("topic_id")
    private Integer topicId;

    @TableField("content1")
    private String content1;
    @TableField("content2")
    private String content2;
    @TableField("content3")
    private String content3;
    @TableField("content4")
    private String content4;
    @TableField("content5")
    private String content5;
    @TableField("content6")
    private String content6;


    @TableField("count1")
    private Integer count1;
    @TableField("count2")
    private Integer count2;
    @TableField("count3")
    private Integer count3;
    @TableField("count4")
    private Integer count4;
    @TableField("count5")
    private Integer count5;
    @TableField("count6")
    private Integer count6;

    @TableField("participate_count")
    private Integer participateCount;


    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    //前端传递的字段内容
    @Transient
    @TableField(exist = false)
    private String content;

}
